﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

namespace AdminConsole
{
    public partial class Group_List : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void editJSON(object sender, EventArgs e)
        {
            string subKey = subscriptionKey.Value;
            string groupid = groupId.Value;

            string jsonText = "{\"subscriptionkey\": \"" + subKey + "\", \"groupid\": \"" + groupid + "\"}";
            File.WriteAllText(Server.MapPath("keys.json"), jsonText);
        }
    }
}